MicroPython for ESP8266 Development Workshop by Agus Kurniawan

MicroPython for ESP8266 Development Workshop by Agus Kurniawan

Author:Agus Kurniawan
Language: eng
Format: epub, mobi, pdf
Publisher: PE Press
Published: 2016-11-12T00:00:00+00:00


In this chapter, we try to access MicroPython Analog I/O using MicroPython program. There are two scenarios for our cases:

Controlling RGB LED

Reading Analog input using Potentiometer

Let's start.

4.2 Demo Analog Output (PWM) : RGB LED

In this scenario we build a MicroPython program to control RGB LED color using MicroPython Analog output (PWM). RGB LED has 4 pins that you can see it on Figure below.

To understand these pins, you can see the following Figure.

Note:

Pin 1: Red

Pin 2: Common pin

Pin 3: Green

Pin 4: Blue



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.